#ifndef __THREADPOOL_H_
#define __THREADPOOL_H_

struct ThreadPool;
typedef struct ThreadPool ThreadP;

ThreadP *InitThreadPool(int max_thread_num,int min_thread_num,int max_queue_size);
void ThreadP_AddTask(ThreadP *p,void *(*func)(void *),void *arg);
void DestoryThreadPool(ThreadP *p);

#endif